﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NesneMetodArgumani
{
    class MyClass
    {
        public MyClass()
        {
            Console.WriteLine("ctor calisti");
        }
    }
    class Another
    {
        MyClass s;
        public Another(MyClass m) //c++ daki gibi arguman icin ayri alan tahsil edilmez.
        {
            s = m;
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            MyClass ojb=new MyClass();
            Another m = new Another(ojb);

        }
    }
}
